// Interface for the CMain class.
//
////////////////////////////////////////////////////////////////////////////////


#ifndef _MAIN_H_
#define _MAIN_H_


class CMain : public CD3DApplication
{
protected:
	CMcInput*				m_pInput;
	CMcCam*					m_pCam;
	CMcGrid*				m_pGrid;
	ID3DXFont*              m_pD3DXFont;            // D3DX font

	CMcField*				m_pField;
	LPD3DXMESH				m_pSphere	;
	D3DXVECTOR3				m_vcSphere	;

public:
    virtual HRESULT Init();
    virtual HRESULT Destroy();

    virtual HRESULT Restore();
    virtual HRESULT Invalidate();

    virtual HRESULT FrameMove();
    virtual HRESULT Render();

    HRESULT RenderText();

public:
	CMain();
    LRESULT MsgProc( HWND, UINT, WPARAM, LPARAM);
};


extern CMain* g_pApp;

#endif



